<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
    <th rowspan="3" class="sized"><img src="<?php echo base_url('public/admin');?>/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
    <th class="topleft"></th>
    <td id="tbl-border-top">&nbsp;</td>
    <th class="topright"></th>
    <th rowspan="3" class="sized"><img src="<?php echo base_url('public/admin');?>/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td>
    <!--  start content-table-inner ...................................................................... START -->
    <div id="content-table-inner">

        <!--  start table-content  -->
        <div id="table-content">


            <!--  start product-table ..................................................................................... -->
            <form id="mainform" action="" method="post" name="fcheck" id="fcheck" >
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                    <tr>
                        <th class="table-header-repeat line-left"><input style="margin: 10px;" type="checkbox" id="checkAll" name="checkAll" onclick="Check(document.fcheck.chk)"/> </th>

                        <th class="table-header-repeat line-left minwidth-1"><a href="">Tên khách hàng</a>	</th>
                        <th class="table-header-repeat line-left minwidth-1"><a href="">tên sản phẩm</a></th>
                        <th class="table-header-repeat line-left"><a href="">Điện thoại</a></th>
                        <th class="table-header-repeat line-left"><a href="">Giá</a></th>
                        <th class="table-header-repeat line-left"><a href="">Tổng tiền</a></th>
                        <th class="table-header-repeat line-left"><a href="">status</a></th>
                        <th class="table-header-repeat line-left "><a href="">Options</a></th>
                    </tr>
                    <?php
                    $i =1;
                    foreach($orders as $item){?>
                    <tr <?php if($i % 2 == 0){echo 'class="alternate-row"';} ?>>
                        <td><input type="checkbox"  value="<? echo $item->order_id; ?>" name="chk[]" id="chk" /></td>
                        <td ><?php echo $item->order_name;?></td>
                        <td ><?php echo $item->order_product_name;?></td>
                        <td><?php echo $item->order_phone_no;?></td>
                        <td><?php echo $item->order_product_price;?></td>
                        <td><?php echo $item->order_product_price;?></td>
                            <?php
                            echo '<td>';
                            if ( $item->status == 0 )
                                echo '<a href="javascript:update_status( \''.items_link('product/updateStatus/'.$item->order_id.'/1').'\' );"><span style="color: #ff0000;">Nháp</span></a>';
                            else
                                echo '<a href="javascript:update_status( \''.items_link('product/updateStatus/'.$item->order_id.'/0').'\' );">Đã duyệt</a>';
                            echo '</td>';
                            ?>
                        <td >
                            <a href="<?php echo site_url('admin/product/update/'. $item->order_id);?>" title="Edit" class="icon-1 info-tooltip"></a>
                            <a href="<?php echo site_url('admin/product/delete/'. $item->order_id);?>" onclick="return confirm('Bạn có chắc chắn muốn xoá?');" title="Delete" class="icon-2 info-tooltip"></a>

                        </td>
                    </tr>
                    <?php $i++;}?>

                </table>
                <!--  end product-table................................... -->
            </form>
        </div>
        <!--  end content-table  -->

        <!--  start actions-box ............................................... -->
        <div id="actions-box">
            <a href="" class="action-slider"></a>

            <div class="clear"></div>
        </div>
        <!-- end actions-box........... -->

        <!--  start paging..................................................... -->
        <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
            <tr>
                <td>
                    <?php
                    if(isset($paging))
                    {
                        echo '<div class="clear"></div>';
                        echo '<div class="paging">';
                        echo '<ul>';
                        echo $paging;
                        echo '</ul>';
                        echo '</div>';

                       //echo '
                        //    </td>
                        //<td>
                        //    <select  class="styledselect_pages">
                        //        <option value="10">Number of rows</option>
                         //       <option value="10" >10</option>
                         //       <option value="15">15</option>
                         //       <option value="20">20</option>
                         //   </select>
                        //</td>
                      // ' ;
                        }
                    ?>
            </tr>
        </table>
        <!--  end paging................ -->

        <div class="clear"></div>

    </div>
    <!--  end content-table-inner ............................................END  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
    <th class="sized bottomleft"></th>
    <td id="tbl-border-bottom">&nbsp;</td>
    <th class="sized bottomright"></th>
</tr>
</table>
<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

